#!/bin/sh

cd /home/git/dai_ma/github-dns/
##合并代码
git pull origin master:master
##打包
mvn install
##移动到运行位置
/bin/cp /usr/share/maven/repository/com/fulinlin/github-dns/1.0-SNAPSHOT/github-dns-1.0-SNAPSHOT.jar /www/wwwroot/
##后台运行jar
cd /www/wwwroot/
nohup java -jar github-dns-1.0-SNAPSHOT.jar  >/dev/null  &  